package com.lvyou.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.lvyou.entity.Goods;
import com.lvyou.util.TurnPage;

@Mapper
public interface IGoodsMapper {

	public List queryList(@Param("name")String name,@Param("lowPrice") Integer lowPrice,@Param("highPrice") Integer highPrice,@Param("status") Integer status,@Param("turnPage")TurnPage turnPage);
	
	public List mgrQueryList(@Param("name")String name,@Param("startDate") String startDate,@Param("endDate") String endtDate,@Param("status") Integer status);
	
	public int add(@Param("goods") Goods goods);
	
	public int updateById(@Param("goods") Goods goods);
	
	public int deleteByIds(String[] ids);
	
	public Goods queryById(String id);
	
	public int updatePersonNumById(@Param("person_num")int personNum,@Param("id")String id);
}
